package codej.ast;

import static codej.ast.Option.*;
import codej.ast.*;
import codej.ast.*;

public class SwitchExpression extends SwitchCase {

	private final Expression expression;

	public SwitchExpression(Expression expression) {
		this.expression = expression;
	}

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public Expression getExpression() {
		return option(expression, new Expression());
	}

}
